package com.fortune.service;

import com.fortune.dto.in.channelDiscount.ChannelDiscountAddDto;
import com.fortune.dto.in.channelDiscount.ChannelDiscountEditDto;
import com.fortune.dto.in.channelDiscount.ChannelDiscountListDto;
import com.fortune.vo.channelDiscountMgt.ChannelDiscount;

import java.util.List;

public interface ChannelDiscountMgtService {
    /**
     *优惠政策列表
     * @return
     */
    List<ChannelDiscount> queryChannelDiscountList(String companyId,ChannelDiscountListDto channelDiscountListDto);

    /**
     * 优惠政策列表数量
     * @param companyId
     * @param channelDiscountListDto
     * @return
     */
    int queryChannelDiscountListCount(String companyId,ChannelDiscountListDto channelDiscountListDto);

    /**
     * 根据优惠名称查找数据是否存在
     * @param companyId
     * @param name
     * @return
     */
    int queryChannelDiscountCountByName(String companyId,String name);

    /**
     * 添加优惠政策
     * @param companyId
     * @param addDto
     * @return
     */
    int addChannelDiscountCount(String companyId,ChannelDiscountAddDto addDto);

    /**
     * 删除优惠政策
     * @param companyId
     * @param channelDiscountId
     * @return
     */
    int deleteChannelDiscountCount(String companyId,String channelDiscountId);

    /**
     * 编辑时查看是否存在
     * @param companyId
     * @param editDto
     * @return
     */
    int queryIsExist(String companyId,ChannelDiscountEditDto editDto);

    /**
     * 编辑优惠政策
     * @param companyId
     * @param editDto
     * @return
     */
    int editChannelDiscountCount(String companyId,ChannelDiscountEditDto editDto);
}
